package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    //根据username查询信息
    Employee findByUserName(String username);


    //查询员工列表,
    //因为无法确定name是否存在,故使用动态SQL查询
    List<Employee> findList(String name);

    //添加员工
    void save(Employee employee);

    //回显员工信息
    Employee findById(Long id);

    //修改员工信息 + 设置状态
    //int updateById(Employee employee);
}
